﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OINS
{
    public partial class addHostWindow : Form
    {
        ActiveHosts active = new ActiveHosts();
         

        public addHostWindow(ActiveHosts active)
        {
            this.active=active;
        }
        public addHostWindow()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void AddHost_Load(object sender, EventArgs e)
        {

        }

        private void addButtonAddHost_Click(object sender, EventArgs e)
        {
           
            
            active.Add(nameTextAddHost.Text, ipTextAddHost.Text);
            nameTextAddHost.ResetText();
            ipTextAddHost.ResetText();

            

        }

        
    }
}
